import React, { Component } from 'react';
import { Menu, Icon } from 'antd';
const SubMenu = Menu.SubMenu;
import  './index.less';
class Schema extends Component {
  render() {

    return (

      <Menu onClick={this.props.onClick}
            style={{ width: 240 }}
            defaultSelectedKeys={['1']}
            defaultOpenKeys={['sub4']}
            mode="inline">
        <SubMenu key="sub4" title={<span><Icon type="setting" /><span>系统表</span></span>}>
          {Object
            .keys(this.props.menuDate)
            .map(key => <Menu.Item key={this.props.menuDate[key]}>{this.props.menuDate[key]}</Menu.Item>)}
        </SubMenu>
      </Menu>
    );
  }
}
export  default Schema;